package sign_in.loginsystem.model.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import sign_in.loginsystem.model.entity.Department;
import sign_in.loginsystem.model.entity.Menu;
import sign_in.loginsystem.model.entity.Role;
import sign_in.loginsystem.model.entity.User;

import java.util.ArrayList;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBean {

    //对象信息的总数量
    int allObjectNum;

    //当页的信息数量
    int pageSize;

    ArrayList<User> pageUser;

    ArrayList<Department> departments;

    ArrayList<Role> roles;

    ArrayList<Menu> menus;

    //当前页数
    int pageNum;

    //所有页数
    int allPageNum;
}
